Replication instructions for Rozenas, Schutte, and Zhukov: "The Political Legacy of Violence: The Long-Term Impact of Stalin’s Repression in Ukraine". Journal of Politics (forthcoming).

The replication data and code provided here can be used to replicate all the tables and figures in the main text and the supplementary information. This document provides an overview of the replication procedure.

1) Contents of the replication archive

The archive contains seven files, including this readme. The "replication.R" script loads the RData workspace "replication.RData". The .do, .ado, .dta, and .sthlp files contains data and Stata code for the Caetano exogeneity test discussed in the supplementary information.

2) Replication instructions

To replicate the empirical analysis, download the scripts and data structures into a local folder. The R code can be executed within any suitable IDE, such as RStudio or directly on the R command line under OSX or Linux. Replication was tested with R version 3.3.2. The header of the R script checks for missing R packages and should install them if needed. Please note that some packages have external dependencies (Rgdal, for instance). Please pay attention to error messages during the installation of missing packages and make sure the required packages can be loaded. 

Next, change the path to your local copy of the RData file in line 22. After that, the code can be executed in sequence. All replicated tables are shown directly on the R command line, but they can be exported into Latex files and compiled into pdf. All figures are plotted to the screen. The pdf() command can be used to export them to local files. Each code block in the replication file starts with a reference to the corresponding table or figure in the publication. For the replication of the Caetano exogeneity test, Stata is required. 
